#include "sdl.h"
#include "sdl_opengl.h"

#include "init.hpp"
#include "globals.hpp"
#include "inputs.hpp"

int main( int argc, char* args[] )
{

    initSDL();
    setupGL();

    // program main loop
    while (!done)
    {
        stav_vstupu();
        klavesnice();
        mys();

        clearScene();


        //kreslime dve uhlopricky monitoru
        glDisable(GL_TEXTURE_2D);
        glPushMatrix();
        //glTranslatef(0, 0, 0);
        glBegin( GL_LINES );
        glVertex2f( 0, 0 );
        glVertex2f( rozliseni_x, rozliseni_y );
        glEnd();
        glBegin( GL_LINES );
        glVertex2f( 0, rozliseni_y );
        glVertex2f( rozliseni_x, 0 );
        glEnd();
        glPopMatrix();
        glEnable(GL_TEXTURE_2D);



        SDL_GL_SwapBuffers();
    }


    return 0;
}
